<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="nav" content="0" />
<meta name="acc" content="_staff" />
<title>监督人员管理</title>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$("#inputForm").validate({
							rules : {
								duty : "required",
								startDate : "required",
								endDate : "required",
								phone : {
									digits : true,
									required : true,
									minLength : 11
								}
							},
							messages : {

							}
						});
						$("#check")
								.click(
										function() {
											var url = "${ctx}/account/api/user.action?decorator=open&confirm=true"
											var obj = new Object();
											mm = window
													.showModalDialog(
															url,
															obj,
															'dialogHeight:500px;dialogWidth:780px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
																	+ (screen.width / 2.0 - 150)
																	+ ',dialogTop:170')
											if (mm != null) {
												$("input[name='user.name']")
														.val(mm.name);
												$("input[name='user.id']").val(
														mm.id);
											}
										});
						$("#startDate").addClass("Wate").bind("focus",
								function() {
									WdatePicker({
										skin : 'whyGreen',
										dateFmt : 'yyyy-MM-dd'
									});
								});
						$("#endDate").addClass("Wate").bind("focus",
								function() {
									WdatePicker({
										skin : 'whyGreen',
										dateFmt : 'yyyy-MM-dd'
									});
								});
					});
</script>
</head>
<body>
	<form
		action="${ctx }/business/appl/superviser!save3.action?projectId=${projectId}"
		id="inputForm" method="post" class="yform">
		<div id="caption">
			<h6>${licenseplateNumber}批量新增监督人员</h6>
		</div>
		<input type="hidden" name="id" id="id" value="${id }">
		<table class="noborder">
			<tr class="type-text">
				<td>项目名称</td>
				<td colspan="3"><input type="text"
					value="<pt:labels argument1="${projectId }"
						type="proj" single="true"></pt:labels>"
					readonly="readonly"></td>
			</tr>
			<tr class="type-text">
				<td>开始时间</td>
				<td><input type="text" name="startDate" id="startDate"
					value='<fmt:formatDate value="${startDate }" pattern="yyyy-MM-dd"/>'>
				</td>
				<td>结束时间</td>
				<td><input type="text" name="endDate" id="endDate"
					value='<fmt:formatDate value="${endDate }" pattern="yyyy-MM-dd"/>'>
				</td>
			</tr>
			<tr class="type-text">
				<td>选择监督组</td>
				<td colspan="3"><pt:labels type="supervise" name="superName"></pt:labels></td>
			</tr>
		</table>
		<div class="type-button">
			<input class="submit" type="submit" value="保存" />&nbsp; <input
				class="reset" type="button" value="返回" class="rest"
				onclick="history.back()" />
		</div>
	</form>
</body>
</html>